package site.jlopen.secret.common;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import site.jlopen.secret.client.SecretClientHttpErrorCode;

public class SecretClientException extends RuntimeException{
	private final Logger logger = LoggerFactory.getLogger(getClass());
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public SecretClientException(SecretClientHttpErrorCode status, String message, Throwable cause, Object... arguments) {
		super(message, cause);
		logger.error(message, arguments);
	}

	public SecretClientException(String message, Object... arguments) {
		super(message);
		logger.error(message, arguments);
	}

}
